package com.shbt.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TAdmin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_admin", catalog = "default_schema")
public class TAdmin implements java.io.Serializable {

	// Fields

	private Integer id;
	private String adminCode;
	private String adminName;
	private String string;

	// Constructors

	/** default constructor */
	public TAdmin() {
	}

	/** minimal constructor */
	public TAdmin(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public TAdmin(Integer id, String adminCode, String adminName, String string) {
		this.id = id;
		this.adminCode = adminCode;
		this.adminName = adminName;
		this.string = string;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "admin_code", length = 20)
	public String getAdminCode() {
		return this.adminCode;
	}

	public void setAdminCode(String adminCode) {
		this.adminCode = adminCode;
	}

	@Column(name = "admin_name", length = 20)
	public String getAdminName() {
		return this.adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	@Column(name = "string", length = 20)
	public String getString() {
		return this.string;
	}

	public void setString(String string) {
		this.string = string;
	}

}